package myJs.myPkg.reactBootstrap

import japgolly.scalajs.react.{Children, JsFnComponent}
import slinky.readwrite.ObjectOrWritten

import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport

object Dropdown {
  case class Props(
  )

  @js.native
  @JSImport("react-bootstrap", "Dropdown")
  object RawComponent extends js.Object {

    val Toggle: js.Object = js.native

    val Menu: js.Object = js.native

    val Item: js.Object = js.native

  }

  object Toggle {
    case class Props(
        variant: js.UndefOr[String] = js.undefined,
        id: js.UndefOr[String] = js.undefined
    )

    val Component = JsFnComponent[ObjectOrWritten[Props], Children.Varargs](RawComponent.Toggle)

  }

  object Menu {
    case class Props(
    )

    val Component = JsFnComponent[ObjectOrWritten[Props], Children.Varargs](RawComponent.Menu)

  }

  object Item {
    case class Props(
        href: js.UndefOr[String] = js.undefined
    )

    val Component = JsFnComponent[ObjectOrWritten[Props], Children.Varargs](RawComponent.Item)

  }

}
